package com.wuxi.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "spindle.auth")
public class JwtProperties {
    /**
     * 密钥
     */
    private String secret;

    /**
     * 过期时间(单位:秒)
     */
    private long expire;

    /**
     * 令牌前缀
     */
    private String tokenPrefix;

    /**
     * 令牌请求头
     */
    private String header;
}
